Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
decompress-tar
Advanced tools
The decompress-tar npm package is a module designed to decompress tarball files (.tar). It is often used in conjunction with other decompression modules to handle different compression formats. The package provides a simple API for extracting files from a tar archive.
Decompress tar files
This feature allows you to decompress .tar files. The code sample shows how to use the decompress-tar plugin with the decompress module to extract files from a tar archive to a specified directory.
const decompress = require('decompress');
const decompressTar = require('decompress-tar');
decompress('unicorn.tar', 'dist', {
plugins: [
decompressTar()
]
}).then(files => {
console.log('Files decompressed successfully!');
});
The 'tar' package provides the ability to create, extract, and manipulate tarball archives. It has a more comprehensive feature set for handling tar files compared to decompress-tar, which is specifically for decompression.
The 'tar-fs' package allows for packing and extracting tarball filesystem streams. It is similar to decompress-tar but also supports packing, and it works with the file system directly.
The 'unzipper' package is for extracting .zip files. While it is not for tar files, it provides similar decompression functionality for a different archive format.
tar decompress plugin
$ npm install decompress-tar
const decompress = require('decompress');
const decompressTar = require('decompress-tar');
decompress('unicorn.tar', 'dist', {
plugins: [
decompressTar()
]
}).then(() => {
console.log('Files decompressed');
});
Returns both a Promise for a Buffer and a Duplex stream.
Type: Buffer
Stream
Buffer or stream to decompress.
MIT © Kevin Mårtensson
FAQs
decompress tar plugin
The npm package decompress-tar receives a total of 2,745,230 weekly downloads. As such, decompress-tar popularity was classified as popular.
We found that decompress-tar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.